AZ
QUIZ project

Names of players are inputted at the beginning of game. Colour of player is inputted subsequently, if this possibility is entered in AZ.ini file. That colour highlight selected fields and rectangle with name of player. If possibility of colour selection is forbidden (in the AZ.ini file), colours will be defined by setting in AZ.ini file. Next step is entering game mode (see bellow), but it could be set by AZ.ini file too.
Picture 1: Structure of lines in AZ.ini file
-----The
number defines possibility of colour selection at the beginning of game.
-----The
colour of player A for case when colour selection is forbidden.
-----The
colour of player B for case when colour selection is forbidden.
-----The
possibility for choice of game mode (1: choice is possible, 0: choice is
impossible).
-----If
previous value is 0, this value defines game mode (0: game mode A, 1: game mode B).
-----The
protection against repeated selection of engaged field, not for grey fields (0:
non active, 1: active).
-----The
introduction of programme (0: non active, 1: active).
-----There
is possible to enter the path for storage of temporary file. Entered characters
define directory of project.
The game has two modes. The
first game mode is indicated by next picture.
Picture 2: Example of game mode A

Players have to click into box with
answer which is right in their opinion. Correctness is checked by computer
(according files with answers).
If answer is right the field in pyramid will be marked with player’s colour
(see picture 3).
Picture 3: AZ pyramid

If answer is false the field in
pyramid will be marked with grey colour (see picture 3). If the second player
wants the same field it is possible. If there is only one file with answers the
question will be the same. If there are more files then one, question for
selected field will be different.
Questions are written down in
AZX.txt files, when character X has value from 1 to 9, i.e. there could be 9
files with questions at most. Each of them contains 28 questions, but number of
lines is 29. Number of files with questions is defined in AZ1.txt file (the
first value put in the first line). Therefore the first line in other files is
not filled.
Answers are written down in AZ1X.txt
files, when character X has value from 1 to 9, i.e. there could be 9 files with
answers at most. Each of them contains 28 lines with answers. Answers in line
are separated by semi-colon. The first answer is right. When answers are shown
on screen they are mixed up.
The second game mode is indicated by
next picture.
Picture 4: Example of game mode B

Correctness in this mode is checked by
players or by the third person (a referee). The selection of requested field is
the same as in the game mode A, i.e. mouse click on the left button. If the
answer is correct (with agree of the second player) the first player will click
on his/her rectangle with name. If the answer is incorrect or the player do not know the second player can answer. If the
second player don’t want the question or his/her answer is incorrect, there
have to be clicked on grey rectangle.
Information about questions (files
AZX.txt) is the same as information for the game mode A.
The end of the game is not defined.
Rules can be arranged by players (e.g. time limit, number of right fields in
pyramid, etc). Therefore there is not evaluated the win by this game, but later
version will be with a counter of correct answers.
Edit:
Button for quit of game was added
(it is for information about winner).
Menu and list of winners were added:

